names = ["小红","小兰","小明"]
print(names)
names.append("小马")
print(names)
names.append("小黄")
print(names)
names.append("小李")
print(names)
pop_names = names.pop(2)
print(pop_names)
print(names)
names.remove("小黄")
print(names)
names[0] = "小何"
print(names)
_name = "小张"
if _name in names:
    print(names.index(_name))
else:
    print("%s 不在我们的列表中" %(_name))

print(names)
